﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="menu_list.aspx.cs" Inherits="He.Web.manage.weixin.menu_list" %>
<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<%@ Import Namespace="System.Collections.Generic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>自定义菜单列表</title>
<uc:head runat="server" ID="uchead" />
<uc:head_list runat="server" ID="uchead_list" />
</head>
<body style="padding: 10px;">
<form id="form1" runat="server">
  <div class="navigation"> <span class="add"><a href="menu_edit.aspx">增加菜单</a></span> <b>您当前的位置：首页 &gt; 微信公众号管理
    &gt; 自定义菜单列表</b> </div>
  <div class="spClear"> </div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
    <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">
      <HeaderTemplate>
        <tr>
          <th> 选择 </th>
          <th> 菜单名称 </th>
          <th> 关联关键词 </th>
          <th> 外链URL </th>
          <th> 排序数字 </th>
          <th> 操作 </th>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr>
          <td><asp:CheckBox ID="Check" CssClass="checkall" runat="server"></asp:CheckBox>
            <asp:Label ID="lb_id" runat="server" Text='<%#Eval("id")%>' Visible="false"></asp:Label>
          </td>
          <td><asp:Literal ID="LitFirst" runat="server"></asp:Literal>
            <asp:HiddenField ID="hidPid" runat="server" Value='<%#Eval("pid") %>' />
            <%#Eval("name") %></td>
          <td><%#Eval("key") %> </td>
          <td><%#Eval("url")%> </td>
          <td><asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="txtInput2 small2"
                            onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" />
          </td>
          <td><a href="menu_edit.aspx?id=<%#Eval("id") %>&action=<%=He.Web.UI.Enums.ActionEnum.Edit %>"> 修改</a>  
                                    <asp:LinkButton ID="Del" runat="server" OnCommand="Del_Command" CommandArgument='<%#Eval("id") %>'
                                        OnClientClick="return confirm('该操作会删除本菜单和下级菜单，确定要删除吗？');">删除</asp:LinkButton></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <div class="spClear"> </div>
  <div style="line-height: 30px; height: 30px;">
    <div class="left"> <span class="btn_all" onclick="CheckAll(this)">全 选</span> <span class="btn_bg">
      </span> <span class="btn_bg">
      <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click">保存排序</asp:LinkButton>
      </span><span class="btn_bg">
      <asp:LinkButton ID="lbtnGenerate" runat="server" onclick="lbtnGenerate_Click">生成菜单</asp:LinkButton>
      </span>  </div>
  </div>
</form>
</body>
</html>
